﻿<%= error_messages_for 'todo' %>
<!--[form:todo]-->
<div class="mytodo_form">
<%= hidden_field 'todo', 'user_id', :value => session[:user_id] %>
<%= hidden_field 'todo', 'check_state'  %>
<%= hidden_field 'todo', 'back', :value => params[:back] %>

<p><label for="todo_todo">名称: </label>
<%= text_field 'todo', 'todo', :size => 50  %></p>

<p><label for="todo_e_type">类型: </label>
<%= radio_button 'todo','e_type', 1, :checked=>true %>重要，紧急
<%= radio_button 'todo','e_type', 2 %>重要，不紧急
<%= radio_button 'todo','e_type', 3 %>不重要，紧急
<%= radio_button 'todo','e_type', 4 %>不重要，不紧急
</p>

<p><label for="todo_description">描述: </label><br>
<%= text_area "todo", "description", :cols => 50, :rows => 4 %></p>

<p><label for="todo_is_full_day">全天任务: </label>
<%= check_box 'todo', 'is_full_day'  %></p>

<p><label for="todo_repeat_days">重复天数: </label>
<%= text_field 'todo', 'repeat_days', :size=> '5'  %></p>

<p><label for="todo_start_time">开始时间: </label>
<%= time_select 'todo', 'start_time'  %></p>

<p><label for="todo_end_time">结束时间: </label>
<%= time_select 'todo', 'end_time'  %></p>

<p><label for="todo_create_time">日期: </label>
<%= text_field 'todo', 'create_for_date', :onclick=>'new Calendar().show(this);', :size=>'15', :readonly=> 'readonly' %></p>
</div>
<!--[eoform:todo]-->
